import 'package:flutter/material.dart';


class HeadIconWidget extends StatelessWidget {
  final String path;
  final Function onTab;

  HeadIconWidget({Key key, this.path, this.onTab}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onTab,
      child: Container(
          margin: EdgeInsets.only(right: 16),
          child: Image.asset(
            path,
            width: 33,
          )),
    );
  }
}
